home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best of www.BestZips.com (Collector's Edition)
/
Best of WWW.BESTZIPS.COM Collector's Edition (JCSM Shareware) (JCS Marketing).ISO
/
prgtools
/
enigma31.zip
/
samples.zi_
/
samples.zi
/
Level1.frm
next >
Wrap
Text File
|
1996-09-02
|
4KB
|
188 lines
VERSION 4.00
Begin VB.Form Form1
Caption = "Level One "
ClientHeight = 2685
ClientLeft = 3645
ClientTop = 2730
ClientWidth = 3645
Height = 3090
Left = 3585
LinkTopic = "Form1"
LockControls = -1 'True
ScaleHeight = 2685
ScaleWidth = 3645
Top = 2385
Width = 3765
Begin VB.CommandButton Command3
Caption = "E&xit"
Height = 405
Left = 2490
TabIndex = 4
Top = 2190
Width = 1065
End
Begin VB.CommandButton Command2
Caption = "&Continue"
Height = 405
Left = 1290
TabIndex = 3
Top = 2190
Width = 1065
End
Begin VB.CommandButton Command1
Caption = "&Register"
Enabled = 0 'False
Height = 405
Left = 120
TabIndex = 2
Top = 2190
Width = 1065
End
Begin VB.TextBox Text2
Height = 315
Left = 120
MultiLine = -1 'True
TabIndex = 1
Top = 1770
Width = 3405
End
Begin VB.TextBox Text1
Height = 1575
Left = 120
MultiLine = -1 'True
TabIndex = 0
Top = 90
Width = 3405
End
End
Attribute VB_Name = "Form1"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Dim stext1 As String
Dim stext2 As Variant
stext1 = Text1.Text
stext2 = Text2.Text
If Jumbler(stext1, stext2) = False Then
MsgBox "Registration Information Is Invalid", 48, "Shareware"
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
Else
MsgBox "Thank You, Registration Accepted", , "Shareware"
WriteIt stext1, stext2
benable = True
Unload Me
Form2.Show
End If
End Sub
Private Sub Command2_Click()
Unload Me
Form2.Caption = Form1.Caption
Form2.Show
End Sub
Private Sub Command3_Click()
End
End Sub
Private Sub Form_Load()
Move (Screen.Width - Width) \ 2, (Screen.Height - Height) \ 2
End Sub
Private Sub Text1_Change()
EnableButtons
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text2.SetFocus
End If
End Sub
Private Sub Text2_Change()
EnableButtons
End Sub
Private Sub EnableButtons()
If Text1.Text > "" And Text2.Text > "" Then
Command1.Enabled = True
Else
Command1.Enabled = False
End If
End Sub
Private Sub Text3_Change()
Dim LenText As Integer
LenText = Len(Text3.Text)
If LenText = 2 Then
If Kickout(Text3.Text) = False Then
Text3.Text = ""
Text3.SetFocus
Else
Text2.SetFocus
End If
End If
End Sub
Private Sub Text3_GotFocus()
If Text1.Text = "" Then
Text1.SetFocus
End If
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Command1_Click
End If
End Sub